<template>
  <li class="my-event">
    <div class="event-count" v-if="getUserEventData.value"></div>
    <a href="#" @click="handleGetEvent(router)">我的事件</a>
    <EventList v-if="isEventList" />
  </li>
</template>

<script setup>
import EventList from './components/EventList.vue'
import { useMyEventHttp } from './Hooks/useMyEventHttp.js'
import { useRouter } from 'vue-router'
const router = useRouter()
const { isEventList, handleGetEvent, getUserEventData } = useMyEventHttp()
</script>

<style lang="less" scoped>
@import './styles/evnet.css';
</style>
